=============================================================================
============							=============
============         v.2.5 by Werther       ============
============							=============
=============================================================================

      ! 
*****************************************************************************

      http://site.ru/index.php?do=table
     {toporders}

1.	       upload      .
2.	      templates    (CHMOD 666)
3.	    (CHMOD 777)  /engine/data/tableconfig.php.
4.	  install.php    :   

5.	    DLE / 8.2  install_applications.php

=============================================================================
- 1 -    DLE   .htaccess
*****************************************************************************

RewriteEngine On


RewriteRule ^table.html+$ /index.php?do=table [L]
RewriteRule ^table/doadd.html+$ /index.php?do=table&action=doadd [L]
RewriteRule ^page_orders/(.*)$ index.php?do=table&cstart=$1 [L]
=============================================================================

=============================================================================
- 2 -    DLE   engine.php
*****************************************************************************

case "static" :
	include ENGINE_DIR .'/modules/static.php';
	break;


case "table" :
        include ENGINE_DIR .'/modules/table.php';
        break;
=============================================================================

=============================================================================
- 3 -    DLE   index.php (  )
*****************************************************************************

$tpl->set('{speedbar}', $tpl->result['speedbar']);


$tpl->set('{toporders}', $toporders);
=============================================================================

=============================================================================
- 4 -    DLE   init.php (  )
*****************************************************************************

include_once ENGINE_DIR.'/modules/rssinform.php';



@include (ENGINE_DIR . '/data/tableconfig.php');
if ($table_config['allow_toporders'] == "yes") {
	include_once ROOT_DIR . '/language/' . $config['langs'] . '/table.lng';
	include_once ENGINE_DIR . '/modules/toptables.php';
}
=============================================================================

=============================================================================
- 5 -   DLE /  8.0     admin.php 
*****************************************************************************

'googlemap',


'table',
=============================================================================

=============================================================================
- 6 -   DLE  8.0     admin.php 
*****************************************************************************
 (    ",")
'googlemap' => 'admin',


'table' => 'admin' );
=============================================================================

=============================================================================
- 7 -   DLE /  8.0   engine\inc\option.php
*****************************************************************************

array (
'name' => $lang['opt_google'], 
'url' => "$PHP_SELF?mod=googlemap", 
'descr' => $lang['opt_googlec'], 
'image' => "googlemap.png", 
'access' => '1'
),


array (
'name' => ' ', 
'url' => "$PHP_SELF?mod=table", 
'descr' => '   v.2.5 by Werther', 
'image' => "table.png", 
'access' => "1" 
),
=============================================================================

=============================================================================
- 8 -   DLE  8.0   engine\inc\option.php
*****************************************************************************
     'access' => $user_group[$member_id['admin_googlemap'] ),


array (
'name' => $lang['opt_google'], 
'url' => "$PHP_SELF?mod=googlemap", 
'descr' => $lang['opt_googlec'], 
'image' => "googlemap.png", 
'access' => $user_group[$member_id['user_group']]['admin_googlemap'] 
),


array (
'name' => ' ', 
'url' => "$PHP_SELF?mod=table", 
'descr' => '   v.2.5 by Werther', 
'image' => "table.png", 
'access' => $user_group[$member_id['user_group']]['allow_table'] 
),
=============================================================================

=============================================================================
- 9 -   DLE    7.5/8.0   engine\inc\usergroup.php
*****************************************************************************


$admin_googlemap = intval( $_REQUEST['admin_googlemap'] );


$allow_table = intval( $_REQUEST['allow_table'] );


if( $action == "doadd" ) {
		$db->query( "INSERT INTO " . USERPREFIX . "_usergroups (group_name, allow_cats, allow_adds, cat_add, allow_admin, allow_addc, allow_editc, allow_delc, edit_allc, del_allc, moderation, allow_all_edit, allow_edit, allow_pm, max_pm, max_foto, allow_files, allow_hide, allow_short, time_limit, rid, allow_fixed, allow_feed, allow_search, allow_poll, allow_main, captcha, icon, allow_modc, allow_rating, allow_offline, allow_image_upload, allow_file_upload, allow_signature, allow_url, news_sec_code, allow_image, max_signature, max_info, admin_addnews, admin_editnews, admin_comments, admin_categories, admin_editusers, admin_wordfilter, admin_xfields, admin_userfields, admin_static, admin_editvote, admin_newsletter, admin_blockip, admin_banners, admin_rss, admin_iptools, admin_rssinform, admin_googlemap) values ('$group_name', '$allow_cats', '$allow_adds', '$cat_add', '$allow_admin', '$allow_addc', '$allow_editc', '$allow_delc', '$edit_allc', '$del_allc', '$moderation', '$allow_all_edit', '$allow_edit', '$allow_pm', '$max_pm', '$max_foto', '$allow_files', '$allow_hide', '$allow_short', '$time_limit', '$rid', '$allow_fixed', '$allow_feed', '$allow_search', '$allow_poll', '$allow_main', '$captcha', '$group_icon', '$allow_modc', '$allow_rating', '$allow_offline', '$allow_image_upload', '$allow_file_upload', '$allow_signature', '$allow_url', '$news_sec_code', '$allow_image', '$max_signature', '$max_info', '$admin_addnews', '$admin_editnews', '$admin_comments', '$admin_categories', '$admin_editusers', '$admin_wordfilter', '$admin_xfields', '$admin_userfields', '$admin_static', '$admin_editvote', '$admin_newsletter', '$admin_blockip', '$admin_banners', '$admin_rss', '$admin_iptools', '$admin_rssinform', '$admin_googlemap')" );
		msg( "info", $lang['all_info'], $lang['group_ok1'], "$PHP_SELF?mod=usergroup" );
	} else {
		$id = intval( $_REQUEST['id'] );
		$db->query( "UPDATE " . USERPREFIX . "_usergroups set group_name='$group_name', allow_cats='$allow_cats', allow_adds='$allow_adds', cat_add='$cat_add', allow_admin='$allow_admin', allow_addc='$allow_addc', allow_editc='$allow_editc', allow_delc='$allow_delc', edit_allc='$edit_allc', del_allc='$del_allc', moderation='$moderation', allow_all_edit='$allow_all_edit', allow_edit='$allow_edit', allow_pm='$allow_pm', max_pm='$max_pm', max_foto='$max_foto', allow_files='$allow_files', allow_hide='$allow_hide', allow_short='$allow_short', time_limit='$time_limit', rid='$rid', allow_fixed='$allow_fixed', allow_feed='$allow_feed', allow_search='$allow_search', allow_poll='$allow_poll', allow_main='$allow_main', captcha='$captcha', icon='$group_icon', allow_modc='$allow_modc', allow_rating='$allow_rating', allow_offline='$allow_offline', allow_image_upload='$allow_image_upload', allow_file_upload='$allow_file_upload', allow_signature='$allow_signature', allow_url='$allow_url', news_sec_code='$news_sec_code', allow_image='$allow_image', max_signature='$max_signature', max_info='$max_info', admin_addnews='$admin_addnews', admin_editnews='$admin_editnews', admin_comments='$admin_comments', admin_categories='$admin_categories', admin_editusers='$admin_editusers', admin_wordfilter='$admin_wordfilter', admin_xfields='$admin_xfields', admin_userfields='$admin_userfields', admin_static='$admin_static', admin_editvote='$admin_editvote', admin_newsletter='$admin_newsletter', admin_blockip='$admin_blockip', admin_banners='$admin_banners', admin_rss='$admin_rss', admin_iptools='$admin_iptools', admin_rssinform='$admin_rssinform', admin_googlemap='$admin_googlemap' WHERE id='{$id}'" );
		msg( "info", $lang['all_info'], $lang['group_ok2'], "$PHP_SELF?mod=usergroup" );
	}

 
if( $action == "doadd" ) {
		$db->query( "INSERT INTO " . USERPREFIX . "_usergroups (group_name, allow_cats, allow_adds, cat_add, allow_admin, allow_addc, allow_editc, allow_delc, edit_allc, del_allc, moderation, allow_all_edit, allow_edit, allow_pm, max_pm, max_foto, allow_files, allow_hide, allow_short, time_limit, rid, allow_fixed, allow_feed, allow_search, allow_poll, allow_main, captcha, icon, allow_modc, allow_rating, allow_offline, allow_image_upload, allow_file_upload, allow_signature, allow_url, news_sec_code, allow_image, max_signature, max_info, admin_addnews, admin_editnews, admin_comments, admin_categories, admin_editusers, admin_wordfilter, admin_xfields, admin_userfields, admin_static, admin_editvote, admin_newsletter, admin_blockip, admin_banners, admin_rss, admin_iptools, admin_rssinform, admin_googlemap, allow_table) values ('$group_name', '$allow_cats', '$allow_adds', '$cat_add', '$allow_admin', '$allow_addc', '$allow_editc', '$allow_delc', '$edit_allc', '$del_allc', '$moderation', '$allow_all_edit', '$allow_edit', '$allow_pm', '$max_pm', '$max_foto', '$allow_files', '$allow_hide', '$allow_short', '$time_limit', '$rid', '$allow_fixed', '$allow_feed', '$allow_search', '$allow_poll', '$allow_main', '$captcha', '$group_icon', '$allow_modc', '$allow_rating', '$allow_offline', '$allow_image_upload', '$allow_file_upload', '$allow_signature', '$allow_url', '$news_sec_code', '$allow_image', '$max_signature', '$max_info', '$admin_addnews', '$admin_editnews', '$admin_comments', '$admin_categories', '$admin_editusers', '$admin_wordfilter', '$admin_xfields', '$admin_userfields', '$admin_static', '$admin_editvote', '$admin_newsletter', '$admin_blockip', '$admin_banners', '$admin_rss', '$admin_iptools', '$admin_rssinform', '$admin_googlemap', '$allow_table')" );
		msg( "info", $lang['all_info'], $lang['group_ok1'], "$PHP_SELF?mod=usergroup" );
	} else {
		$id = intval( $_REQUEST['id'] );
		$db->query( "UPDATE " . USERPREFIX . "_usergroups set group_name='$group_name', allow_cats='$allow_cats', allow_adds='$allow_adds', cat_add='$cat_add', allow_admin='$allow_admin', allow_addc='$allow_addc', allow_editc='$allow_editc', allow_delc='$allow_delc', edit_allc='$edit_allc', del_allc='$del_allc', moderation='$moderation', allow_all_edit='$allow_all_edit', allow_edit='$allow_edit', allow_pm='$allow_pm', max_pm='$max_pm', max_foto='$max_foto', allow_files='$allow_files', allow_hide='$allow_hide', allow_short='$allow_short', time_limit='$time_limit', rid='$rid', allow_fixed='$allow_fixed', allow_feed='$allow_feed', allow_search='$allow_search', allow_poll='$allow_poll', allow_main='$allow_main', captcha='$captcha', icon='$group_icon', allow_modc='$allow_modc', allow_rating='$allow_rating', allow_offline='$allow_offline', allow_image_upload='$allow_image_upload', allow_file_upload='$allow_file_upload', allow_signature='$allow_signature', allow_url='$allow_url', news_sec_code='$news_sec_code', allow_image='$allow_image', max_signature='$max_signature', max_info='$max_info', admin_addnews='$admin_addnews', admin_editnews='$admin_editnews', admin_comments='$admin_comments', admin_categories='$admin_categories', admin_editusers='$admin_editusers', admin_wordfilter='$admin_wordfilter', admin_xfields='$admin_xfields', admin_userfields='$admin_userfields', admin_static='$admin_static', admin_editvote='$admin_editvote', admin_newsletter='$admin_newsletter', admin_blockip='$admin_blockip', admin_banners='$admin_banners', admin_rss='$admin_rss', admin_iptools='$admin_iptools', admin_rssinform='$admin_rssinform', admin_googlemap='$admin_googlemap', allow_table='$allow_table' WHERE id='{$id}'" );
		msg( "info", $lang['all_info'], $lang['group_ok2'], "$PHP_SELF?mod=usergroup" );
	}



$admin_googlemap_no = "checked";


$admin_table_no = "checked";


if( $user_group[$id]['admin_googlemap'] ) $admin_googlemap_yes = "checked"; else $admin_googlemap_no = "checked";


if( $user_group[$id]['allow_table'] ) $admin_table_yes = "checked"; else $admin_table_no = "checked";


    <tr>
        <td style="padding:4px;" class="option"><b>{$lang['group_a_googlemap']}</b><br /><span class="small">{$lang['group_h_googlemap']}</span></td>
        <td style="padding-top:2px;padding-bottom:2px;"><input type="radio" name="admin_googlemap" {$admin_googlemap_yes} value="1" {$gastgroup}> {$lang['opt_sys_yes']} <input type="radio" name="admin_googlemap" {$admin_googlemap_no} value="0" {$admingroup}> {$lang['opt_sys_no']}</td>
    </tr>


	    <tr>
        <td style="padding:4px;" class="option"><b>     </b><br /><span class="small">   ,    ,       .</span></td>
        <td style="padding-top:2px;padding-bottom:2px;"><input type="radio" name="allow_table" {$admin_table_yes} value="1" {$gastgroup}> {$lang['opt_sys_yes']} <input type="radio" name="allow_table" {$admin_table_no} value="0" {$admingroup}> {$lang['opt_sys_no']}</td>
    </tr>
=============================================================================
 !            .
=============================================================================

==============================================================================
  
==============================================================================
    :

  table.tpl
{description}	-	 
[doadd] [/doadd]	-	   
[newadd][/newadd]	-	   ,   
{category}	-	/ 


  tableshow.tpl
{id-orders}		-	id 
{status_img}	-	   
{autor}			-	  
{date}			-	 
{status}		-	 
[editor]{editor}[/editor]	-	  
{adminlink}		-   ,     
{runame}	-	 (.)
{enname}	-	  (Eng.)
{category}	-	/ 
{fileyear}	-	 
{loclink_s}	-	/
{answer}	-	  